package com.ruoyi.mapper;

import com.ruoyi.domain.DingUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Classname DingUserMapper
 * @Description TODO
 * @Version 1.0.0
 * @Date 2024/4/25 20:56
 * @Created by m元波
 */
@Mapper
public interface DingUserMapper {
    @Select("select * from sys_ding_user where ding_id=#{dingId} and del_flag=0")
    DingUser getDingUserByDingId(String dingId);

    @Insert("insert into sys_ding_user(name,user_id,ding_id,title,remark,mobile) values(#{name},#{userId},#{dingId},#{title},#{remark},#{mobile})")
    int insert(DingUser dingUser);
}
